package practice1;

public class Student extends Person {
    String classRoom;

    Student(String name, int age, char gender, String clasRoom) {

        super(name, age, gender);
        this.classRoom = clasRoom;
    }
    void study(){
        System.out.println(name +"正在学习");
    }
    void show(){
        System.out.println("大家好,我叫"+name+",我今年"+age+"岁了,性别是:"+gender+",我是"+classRoom+"班的");
    }
}
